#include<stdio.h>
int lcm(int a,int b)
{
    scanf("%d %d",&a,&b);
    int m=(a>b?a:b);
    while(1)
    {
        if(m%a==0&&m%b==0)
        {
            break;
        }
            m++;
    }
	return m;
}

int main(){
int n,a,b=1,c,d,e;
scanf("%d",&n);
for (int i = 1; i <= n; i++)
{
    e=lcm(b,i);
    c=e/b;
    d=e/i;
    a=a*c+d;
    b=e;
    printf("%d/%d\n",a,b);
}
return 0;
}